package Operation;

import Book.Book;
import Book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-04-13
 * Time: 12:30
 */
public class DisplayOperation implements IOperation{
    @Override
    public void work(BookList book) {
        System.out.println("展示所有图书");
        for(int i =0;i< book.getUsedSize();++i) {
            Book book1 = book.getPos(i);
            System.out.println(book1);
        }
    }
}
